<?php
include_once 'include/control/context.php.inc';
include_once 'include/model/Post.php';
include_once 'include/control/JobControl.php';

if(!$current_usr){
	header("Location: /oauth.php?s=go&url=/job/new");	
}

$control= new JobControl($current_usr);

$title="发布招聘信息";
$keywords ="发布招聘信息";
$description = "发布招聘信息";

include_once 'include/parts/header.php.inc';
?>

<div class="pt10 pb15">
<h1 class="blue">编辑招聘职位</h1>
</div>
<div>
<form action="/job/new" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0"
	class="n_table">
	<tr>
		<th width="11%">标题：</th>
		<td width="89%"><input type="text" name="title" class="ntxt"
			style="width: 200px" value="输入职位标题" /></td>
	</tr>
	<tr>
		<th>内容：</th>
		<td><textarea name="body" cols="45" rows="15" class="textarea">请输入职位内容...</textarea></td>
	</tr>
	<tr>
		<th>分类：</th>
		<td><?php
		echo '<select name="category_id" class="selist">';
		foreach ($categories as &$value) {
			echo '<option value="'.
			$value -> id.'">'.
			$value -> screen_name.
	'</option>';
		}
		echo '</select>';
		?></td>
	</tr>
	<tr>
		<th>&nbsp;</th>
		<td>
		<p class="pt15"><label><input name="needSyn" type="checkbox" checked />同步到新浪微博</label>
		<input type="submit" class="orange_btn round_10" value="发布招聘信息"
			title="发布招聘信息" /></p>
		</td>
	</tr>
</table>
</form>
</div>
<div class="clear"></div>

		<?php
		include_once 'include/parts/footer.php.inc';
		?>


